﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 文件内容队列读写
{
    /// <summary>
    /// SQLite文件数据持久化 队列
    /// </summary>
    public class SQLiteQueue
    {

        /// <summary>
        /// 终端标识
        /// </summary>
        public string TerminalFlag { get; set; }

        TerminalDbData db = null;

        /// <summary>
        /// 删除数据
        /// </summary>
        /// <param name="index"></param>
        public void del(int index) 
        { 
                
        }
         /// <summary>
         /// 写入数据
         /// </summary>
         /// <param name="terminalFalg">终端标识</param>
         /// <param name="data">需要写入的数据字符串</param>
        public void Write( string data)
        {
                 
        }

        public string SQLiteDbPath { get; protected set; }

        /// <summary>
        /// 当前文件中存在的数据总数
        /// </summary>
        public int Count { get; protected set; }

        /// <summary>
        /// 要创建文件队列的东东
        /// </summary>
        /// <param name="path">SQLite数据文件路径</param>
        public SQLiteQueue(string path)
        {
            db = new TerminalDbData(path);
            SQLiteDbPath = path;
        }
    }
}
